package com.example.demoback.mapper;

import com.example.demoback.controller.dto.PasswordDto;
import com.example.demoback.entity.People;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yyd
 * @since 2022-07-01
 */
@Mapper
public interface PeopleMapper extends BaseMapper<People> {

    @Update("update people set peoplepassword = #{newPassword} where peopleids = #{peopleids} and peoplepassword = #{peoplepassword}")
    int updatePassword(PasswordDto passwordDto);

}
